from  flask import Blueprint,redirect,request,render_template,Response,json

admin_blue = Blueprint('admin',__name__)

@admin_blue.route('/test',methods=['GET','POST'])
def hello():
    name = request.args['name']
    # request.json['name']  request.form['name']  request.files['name'] request.headers['name']
    r = [{'a':name},{'b':'b'}]
    resp = Response(response=json.dumps(r), status=200, content_type='application/json;charset=utf-8')
    return resp
